

import { defineComponent, ref, onMounted, watchEffect, computed } from 'vue'

export default defineComponent({
  setup() {
    // return () => h(
    //   "div", ["dddddddd"]
    // )
    const msgref = ref("lllssss")

    onMounted(() => {
      console.log('dddddd')
    })

    watchEffect(() => {
      console.log(' msgref.value', msgref.value)
    })

    const com = computed(() => {
      return msgref.value + 'computed'
    })

    return () => {
      const msg = msgref.value;
      return (<div>ihiihpojopjpojopjpo{msg} {com.value}</div>)
    }
  }
})
